package com.jianying.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Customer {
	
	private Integer id;
	
	private String name;
	
	private String phone;
	
	private String province;
	
	private String city;
	
	private String address;
	
	private String ownerPhone;
	
	private Integer ownerId;
	
	private Integer sourceTenantId;
	
	private Integer tenantId;
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createAt;
	
	private String type;
	
	private String source;
	
	public Customer(){
		
	}
	
	public Customer(String name, String phone, String province, String city, String address,
			String ownerPhone, Integer ownerId, Integer sourceTenantId, Integer tenantId, String type, String source) {
		this.name = name;
		this.phone = phone;
		this.province = province;
		this.city = city;
		this.address = address;
		this.ownerPhone = ownerPhone;
		this.ownerId = ownerId;
		this.sourceTenantId = sourceTenantId;
		this.tenantId = tenantId;
		this.type = type;
		this.source = source;
	}

    public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getSourceTenantId() {
		return sourceTenantId;
	}

	public void setSourceTenantId(Integer sourceTenantId) {
		this.sourceTenantId = sourceTenantId;
	}

	public Integer getTenantId() {
		return tenantId;
	}

	public void setTenantId(Integer tenantId) {
		this.tenantId = tenantId;
	}

	public Date getCreateAt() {
		return createAt;
	}

	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getOwnerPhone() {
		return ownerPhone;
	}

	public void setOwnerPhone(String ownerPhone) {
		this.ownerPhone = ownerPhone;
	}

	public Integer getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Integer ownerId) {
		this.ownerId = ownerId;
	}

}
